import request from '@/utils/request'

// 获取组织树
export function getPBOrganizationTree() {
    return request({
        url: "/GetPBOrganizationTree",
        method: 'get'
    })
}

// 获取组织类型列表
export function getOrganizationType() {
    return request({
        url: "/GetOrganizationTypeInfo",
        method: 'get'
    })
}

// 添加组织信息
export function createOrganization(data) {
    return request({
        url: '/CreatePBOrganizationInfo',
        method: 'post',
        data: data
    })
}

// 修改组织信息
export function updateOrganization(data) {
    return request({
        url: '/UpdatePBOrganizationInfo',
        method: 'post',
        data: data
    })
}

// 删除组织信息
export function delOrganization(guid) {
    return request({
        url: "/DeletePBOrganizationInfo",
        method: 'get',
        params:{guid:guid}
    })
}
